import request from '@/utils/request'

// 查询我的错题列表
export function listWrong(query) {
  return request({
    url: '/generator/wrong/list',
    method: 'get',
    params: query
  })
}

// 查询我的错题详细
export function getWrong(id) {
  return request({
    url: '/generator/wrong/' + id,
    method: 'get'
  })
}

// 新增我的错题
export function addWrong(data) {
  return request({
    url: '/generator/wrong',
    method: 'post',
    data: data
  })
}

// 修改我的错题
export function updateWrong(data) {
  return request({
    url: '/generator/wrong',
    method: 'put',
    data: data
  })
}

// 删除我的错题
export function delWrong(id) {
  return request({
    url: '/generator/wrong/' + id,
    method: 'delete'
  })
}
